package com.redoor.app.stake.basicdata.service;

import com.redoor.app.stake.basicdata.model.BaseProp;
import com.redoor.app.stake.basicdata.model.BaseRegistration;


public interface BaseRegistrationRedisService {

    /**
     * 添加或更新注册码数据对象
     *  redis存入 key:uuid    value:BaseRegistration && key:{注册码}:UUID value:uuid     * @param bean
     * @return
     */
    public boolean modifyInfo(BaseRegistration bean);

    /**
     * 根据主键从缓存查询数据
     * @param uuid
     * @return
     */
    public BaseRegistration getRegistration(String uuid);

    /**
     * 根据注册码查找注册码主键
     * @param number
     * @return
     */
    public String getUuidByNumber(String number);

}
